<security:authorize ifAnyGranted="ROLE_CA,ROLE_CC,ROLE_SCA,ROLE_Booking,ROLE_Bank_USER,ROLE_Insurance,ROLE_Bond_USER">
<c:if test="${not empty loanRequest.id and loanRequest.phase!='draft' and loanRequest.phase!='dealer_submit'}">
    <div class="box box-success">
        <div class="box-header">
            <h3 class="box-title"><fmt:message key="loanRequest.score"/></h3>
            <security:authorize ifAnyGranted="ROLE_CA,ROLE_SCA">
            <a class="btn btn-xs btn-success" id="calculateScore"><fmt:message key="loanRequest.score.btn"/></a>
            </security:authorize>
        </div>
        <!-- /.box-header -->
        <div class="box-body">
            <span id="score" style="font-size: 40px;"></span>
                <%--<input id="score" type="text" class="form-control" readonly/>--%>
            <security:authorize ifAnyGranted="ROLE_CA,ROLE_SCA">
                <c:if test="${loanRequest.auditUser.username==pageContext.request.remoteUser and (loanRequest.phase=='ca_audit' or loanRequest.phase=='sca_audit')}">
            <a href="/loanRequestform?reqId=${loanRequest.id}&mode=edit" class="btn pull-right btn-primary"><fmt:message key="loanRequestDetail.modify"/> </a>
                </c:if>
            </security:authorize>
        </div>
        <!-- /.box-body -->
        <div class="overlay" id="scoreOverlay" style="display: none">
            <i class="fa fa-refresh fa-spin"></i>
        </div>
    </div>



</c:if>
    </security:authorize>